import { Observable, of } from 'rxjs';
import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class DialogService {

  constructor() { }

  // 确认框
  confirm(message? : string) :Observable<boolean> {
     const confirmation = window.confirm( message || 'Is is ok ?')
     return of(confirmation)
  }
}
